package org.ztr.yanai.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: ZhaoTR
 * @Date: Created in 2025/11/22 10:00
 * @Description: 订阅表实体类
 * @Version: 1.0
 */
// 订阅表实体
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("subscription")
public class Subscription {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String email;
    private String token;

    @TableField("is_confirmed")
    private Boolean isConfirmed;

    @TableField("subscribed_at")
    private LocalDateTime subscribedAt;
}